package main

import (
	"context"
	"fmt"
	"github.com/tmc/langchaingo/llms/ollama"
)

// https://github.com/tmc/langchaingo
func main() {
	llm, err := ollama.New(ollama.WithModel("llama3.2:latest"))
	if err != nil {
		panic(err)
	}
	completion, err := llm.Call(context.Background(), "一千加一万等于多少?")
	if err != nil {
		panic(err)
	}
	fmt.Println("回答:", completion)
}
